package com.felight.ems.strings;

class StrReverse{
	public static void main(String[] args){
		//reversing a string
		StringBuffer buffer = new StringBuffer("Blue Moon");
		buffer.reverse();
		System.out.println(buffer);
		//converting primitive data types to string
		Integer i = 100;
		String s = i.toString();
		System.out.println(s);
		
		Byte b = 1;
		String s1 = b.toString();
		System.out.println(s1);
		
		Short sh = 0;
		String s2 = sh.toString();
		System.out.println(s2);
		
		long l = 90890;
		String s3 = Long.toString(l);
		System.out.println(s3);
		
		Float f = 1.2f;
		String s4 = f.toString();
		System.out.println(s4);
		
		Double d = 2.5;
		String s5 = d.toString();
		System.out.println(s5);
		
		Character c = 'A';
		String s6 = c.toString();
		System.out.println(s6);
		Boolean bo = true;
		String s7 = bo.toString();
		System.out.println(s7);
	}
}